package com.cosina.game.fly;

import javax.microedition.khronos.opengles.GL10;

public class FlyRender extends BaseRender {
	
	private Game game;
	
	public FlyRender(){
		game = new Game();
	}
	
	@Override
	protected void afterSurfaceCreated(GL10 gl) {
	}

	@Override
	public void onDrawFrame(GL10 gl) {
		super.baseDrawFrame(gl);
		
		gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
		gl.glTranslatef(0f, 0f, -5f);
		game.draw(gl);
		
		gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
	}

	@Override
	public float[] getClearColor() {
		return Constants.SKY_COLOR;
	}
}
